<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Http\Requests\UserContext;
use App\Http\Services\CampusService;
use App\Http\Traits\ResponseJson;

class CampusController extends Controller
{
    use ResponseJson;

    protected $campusService;

    public function __construct(CampusService $campusService)
    {
        $this->campusService = $campusService;
    }

    public function lists()
    {
        $data = $this->campusService->lists();
        return $this->returnJson($data);
    }

    public function markerLists()
    {
        $data = $this->campusService->markerLists();
        return $this->returnJson($data);
    }

    public function detail()
    {
        $data = $this->campusService->detail();
        return $this->returnJson($data);
    }

    public function categoryLists()
    {
        $data = $this->campusService->categoryLists();
        return $this->returnJson($data);
    }

}
